import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

// 基础组件
import * as ui from '$js/ui'
// 全局变量
import consts from "$js/consts"

// 基础组件样式
import 'element-ui/lib/theme-chalk/index.css'
// 全局样式
import '$style/css/global.css'

Vue.use(ui)
Vue.prototype.$consts = consts

router.beforeEach((to, from, next) => {
    document.body.scrollTop = 0
    document.documentElement.scrollTop = 0
    next()
})

Vue.config.productionTip = false

new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')
